using UnityEngine;
using System.Collections;

public class teste : MonoBehaviour {
	public float speed = 0;
	// Use this for initialization
	void Start () {
	
	}
	
	// Update is called once per frame
	void Update () {
	/*Vector3 angles = this.gameObject.transform.localEulerAngles;
	angles.x += 1;
    this.gameObject.transform.localEulerAngles = angles;
	*/
		if(Input.GetAxis("Vertical") > 0){
		transform.Translate(Vector3.forward * Time.deltaTime);
		}
	else if(Input.GetAxis("Vertical") < 0){
		transform.Translate(- Vector3.forward * Time.deltaTime);
		}

	//Move o objeto pelo eixo X
	if(Input.GetKey("d")){
		transform.Translate(Vector3.right * Time.deltaTime * 3);
		}
	else if(Input.GetKey("a")){
		transform.Translate(- Vector3.right * Time.deltaTime * 3);
		}
		
     
	
	}
}
